package com.asion.vmovie.ui.MVPContract;

import com.asion.vmovie.beans.CateDetials;
import com.asion.vmovie.ui.MVPModel.BaseModel;
import com.asion.vmovie.ui.MVPPresenter.BasePresenter;
import com.asion.vmovie.ui.MVPView.BaseView;

/**
 * Created by asion on 16-10-21.
 */

public interface VideoContract {

    interface Model extends BaseModel{
        void getCateDetials(int postid,OnGetCateDetials onGetCateDetials);
    }

    interface View extends BaseView<CateDetials>{

    }

    abstract class Presenter extends BasePresenter<View,Model>{
      public abstract void getCateDetials(int postid);
    }

    interface OnGetCateDetials{
        void onGetSuccess(CateDetials cateDetials);
        void onGetError(Throwable throwable);
    }
}
